export let counter = import.meta.hot.data.counter || { number: 0 };
let timer;
export function render() {
  timer = setInterval(() => {
    app.innerHTML = counter.number++;
  }, 1000);
}


import.meta.hot.data.counter = counter;
import.meta.hot.dispose(() => {
  console.log('dispose3');
  clearInterval(timer);
});
import.meta.hot.on('vite:beforeUpdate', () => {
  console.log('beforeUpdate');
})